package cube.utils.db;

/**
 * 数据查询结果
 * 
 * @author abiao
 */
public class QueryResult {

    /**
     * 字段名称
     */
    private String[] columnLabels;

    /**
     * 字段数据
     */
    private Object[][] datas;

    /**
     * 查询错误信息
     */
    private String queryErrorMsg;

    public String[] getColumnLabels() {
        return columnLabels;
    }

    public void setColumnLabels(String[] columnLabels) {
        this.columnLabels = columnLabels;
    }

    public Object[][] getDatas() {
        return datas;
    }

    public void setDatas(Object[][] datas) {
        this.datas = datas;
    }

    public boolean hasError() {
        return null != queryErrorMsg;
    }

    public String getErrorMsg() {
        return queryErrorMsg;
    }

    public void setErrorMsg(String queryErrorMsg) {
        this.queryErrorMsg = queryErrorMsg;
    }
}
